<?php
/** ***********************
 * 作者：Zpy 
 * 日期：2016/11/29
 * 作用：活动视图模型
 ** ***********************/
class activityViewHome extends coreFrameworkView
{
	//年会抽奖
	function lottery(){
		
		
		$datas = $this->model->getLottery();		
		
		foreach ($datas as $k=>$v){
			$content[$k]=str_replace("\n","<br>",$v['content']);
			$mobile[$k]= str_replace("\n","",$v['mobile']);
		}
		
		$this->tmp->assign('content',$content);
		
		
		$this->tmp->assign('mobile',$mobile);
	
		$this->dp('home/com_activity/lottery');
	}
	//记录中奖名单
	function Winning()
	{
		$phone = $_POST['phone'];
		$data['status']=2;
		$result = $this->model->updateLottery($phone,$data);
		echo 11;
	}
}

?>